package com.candy.candygateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import reactor.netty.resources.LoopResources;

@SpringBootApplication
public class CandyGatewayApplication {

    // http://localhost:8080/order/getByOrderId?orderId=1
    public static void main(String[] args) {
        // netty 性能优化 reactor模型
        System.out.println(LoopResources.DEFAULT_IO_SELECT_COUNT);
        System.out.println(LoopResources.DEFAULT_IO_WORKER_COUNT);
        System.setProperty("reactor.netty.ioSelectCount", "2");
        System.out.println(LoopResources.DEFAULT_IO_SELECT_COUNT);
        System.out.println(LoopResources.DEFAULT_IO_WORKER_COUNT);
        SpringApplication.run(CandyGatewayApplication.class, args);
    }

}
